package com.example.demo.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 谢辉
 * @Classname IndexController
 * @Description TODO
 * @Date 2020/11/27 22:31
 */
@Controller
@Api("swaggerDemoController相关的api")
public class IndexController {

    @ApiOperation(value = "登录页跳转", notes = "登录页跳转")
    @RequestMapping(value = "/login",method = RequestMethod.GET)
    public String login(){
        return "login";
    }

    @ApiOperation(value = "首页跳转", notes = "首页跳转")
    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String index(){
        return "index";
    }
}
